<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <script>
        var arr = [];
        var test={name:"张三",age:13};
        arr.push(test);
        console.log(arr);
    </script>
</head>
<body>

</body>
</html>